package v1

import (
	"ginweb/internal/controller"

	"github.com/gin-gonic/gin"
)

// RegisterOrderRoutes 注册订单相关的路由
func RegisterOrderRoutes(r *gin.RouterGroup, orderController *controller.OrderController) {
	// 注册路由
	r.POST("/orders", orderController.CreateOrder)
	r.GET("/orders/:id", orderController.GetOrder)
	r.PUT("/orders/:id", orderController.UpdateOrder)
	r.DELETE("/orders/:id", orderController.DeleteOrder)
}
